﻿// ---------------------------------------------------------------------
// Lớp DonDangKi
//
// Nội dung:
//    + Định nghĩa 1 lá đơn đăng kí script
//
// Copyright (c) 2009 YugiOH
//
// Nguyễn Hữu Lê Trọng Tín      YM: ilu2009             ĐT: 0906520611 
// Võ Phước Hậu                 YM: phuochauspkt        ĐT: 0979202707
// ---------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common;
using Yugi.Client.Card;


namespace ManagementEffect
{
    public class DonDangKi
    {
        private ETurnManager Manager;

        public DonDangKi(ETurnManager manager,int id)
        {
            SetManager(manager);
            ListCheckPoint = new List<YCheckPoint>();
            ID = id;
        }
        public int ID
        {
            get;

            set;

        }
       

        public YType CardType
        {
            get;
            set;
        }
        public List<YCheckPoint> ListCheckPoint
        {
            get;
            set;
        }

        public void SetManager(ETurnManager manager)
        {
            Manager = manager;
        }

        public void Register(YCheckPoint effect , string scriptCheck,string scriptExe,TypeCheck type)
        {
            ListCheckPoint.Add(effect);
            Manager.Register(effect, ID, scriptCheck,scriptExe,type);            
        }
        public void RegisterNoAsk(YCheckPoint effect, string scriptCheck, string scriptExe, TypeCheck type)
        {
            ListCheckPoint.Add(effect);
            Manager.RegisterNoAsk(effect, ID, scriptCheck, scriptExe, type);
        }
    }
}
